﻿using Domain.Engine.Events;
using SimpleCqrs.Eventing;

namespace Domain.Engine.Tests
{
  public class ReadModel : IHandleDomainEvents<HelloCreatedEvent>
  {
    public string Name { get; set; }

    public void Handle(HelloCreatedEvent domainEvent)
    {
      Name = domainEvent.Name;
    }
  }
}